projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b800f9
)
Don't warn about _ not left unused in if-let and alike
author
Michael Heerdegen
<michael_heerdegen@web.de>
Fri, 16 Feb 2024 21:07:18 +0000
(22:07 +0100)
committer
Eli Zaretskii
<eliz@gnu.org>
Sun, 25 Feb 2024 07:39:32 +0000
(09:39 +0200)
The macro expansions did not leave a variable _ unused; this triggered
an irritating compiler warning (bug#69108).
* lisp/subr.el (internal--build-binding): Handle bindings of the form
(_ EXPR) separately.
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 3031434365037665e53bb2cd1de7b85bc477d482..301e2e4256633adb7ee8ad0197ccd435263e69cf 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-2580,6
+2580,8
@@
Affects only hooks run in the current buffer."
(list binding binding))
((null (cdr binding))
(list (make-symbol "s") (car binding)))
+ ((eq '_ (car binding))
+ (list (make-symbol "s") (cadr binding)))
(t binding)))
(when (> (length binding) 2)
(signal 'error